package com.graduation.mybatis.mapper;

import com.graduation.mybatis.bean.DietPlans;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 23726
* @description 针对表【diet_plans】的数据库操作Mapper
* @createDate 2025-04-22 11:56:47
* @Entity com.graduation.mybatis.bean.DietPlans
*/
public interface DietPlansMapper extends BaseMapper<DietPlans> {
    DietPlans selectActivePlanByUserId(@Param("userId") Integer userId);
    int deactivateUserPlans(@Param("userId") Long userId);
    int insertNewPlan(DietPlans plan);
}




